<?php

namespace frontend\api;

class ApiModule extends \yii\base\Module {

    public $controllerNamespace = 'frontend\api\controllers';

    public function init() {



        parent::init();

        \Yii::$container->setSingleton('TokenAuth', 'frontend\auth\HttpTokenAuth');
        \Yii::$container->setSingleton('frontend\dao\UserDao', 'frontend\dao\impl\UserDaoImpl');
            \Yii::$container->setSingleton('UserBindDao', 'frontend\dao\impl\UserBindDaoImpl');
        \Yii::$container->setSingleton('UserSessionDao', 'frontend\dao\impl\UserSessionDaoImpl');

        \Yii::$container->setSingleton('UserService', 'frontend\service\user\UserService');
        // custom initialization code goes here
    }

}
